package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.WorkOrderTagEntity;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author ly1666
 * @date 2019/3/19 下午2:13
 * @since v1.0
 * @version v1.0
 */
public interface WorkOrderTagModel extends IModel<WorkOrderTagEntity> {
    @Override
    Integer insert(WorkOrderTagEntity entity)throws XbbException;

    @Override
    Integer update(WorkOrderTagEntity entity)throws XbbException;

    @Override
    List<WorkOrderTagEntity> findEntitys(Map<String, Object> param);

    @Override
    Integer getEntitysCount(Map<String, Object> param);

    Integer minusNum(Map<String,Object> modelMap,Map<Integer,Integer> minusNumMap);

    Integer save(WorkOrderTagEntity workOrderTagEntity)throws XbbException;

    Integer numOperation(Map<String, Object> modelMap);

    WorkOrderTagEntity getByKey(Long key, String corpid);
}
